GtkStyleContext: Only allow looping transitions for states being turned on.
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 24 Nov 2010 21:56:53 +0000 (22:56 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Dec 2010 14:39:43 +0000 (15:39 +0100)
gtk/gtkstylecontext.c

index cbb691a405e92d8dc91c2e6ef3edf13ce08822df..ba72fb7a2767c426fcc01f0618616db0fa94623b 100644 (file)
@@ -2653,7 +2653,9 @@ gtk_style_context_notify_state_change (GtkStyleContext *context,
           gtk_timeline_set_loop (info->timeline, FALSE);
         }
     }
-  else if (!info)
+  else if (!info &&
+           (!gtk_animation_description_get_loop (desc) ||
+            state_value))
     {
       info = animation_info_new (context, region_id,
                                  gtk_animation_description_get_duration (desc),